package com.example.studentmanagement2.repository.Repository;

import com.example.studentmanagement2.model.Student;
import com.example.studentmanagement2.model.Student;

import java.util.List;
import java.util.Optional;

public interface StudentRepository {
    List<Student> findAll();
    Optional<Student> findById(String id);
    Student save(Student student);


    void update(Student student, String originalId);

    void deleteById(String id);
    boolean existsById(String id);

    List<Student> search(String keyword);
    List<String> findDistinctClasses();


}